package com.molichuxing.services.infrastructure.dao;

import com.molichuxing.framework.dao.RootMapper;
import com.molichuxing.services.infrastructure.bean.VehicleMakeBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface VehicleMakeMapper extends RootMapper {

    @Override
    VehicleMakeBean getById(Integer vehicleMakeId);

    /**
     * 根据主品牌信息获取子品牌信息
     * @param vehicleMakePId
     * @return
     */
    List<VehicleMakeBean> getByPId(@Param("vehicleMakePId") Integer vehicleMakePId);

    List<VehicleMakeBean> getVehicleMakeList(@Param("isMainMake") Integer isMainMake);

    List<VehicleMakeBean> getVehicleMakeListAndVerhicleId(@Param("isMainMake") Integer isMainMake, @Param("vehicleIds") List<Integer> vehicleIds);

    List<VehicleMakeBean> getByIds(@Param("ids") List<Integer> ids);

}